package snsdbook.engine;

import util.SQLUtil;

public class Achievement {
  
  public static void PutAchievement(String username, int nomor) {
    String[] ret = SQLUtil.Query(
        "SELECT * FROM achievement WHERE username='" + username + "' AND isi='" + nomor + "'");
    if (ret.length == 0) {
      // New
      SQLUtil.Modify("INSERT INTO achievement(username, isi) VALUES('" + username + "', '" + nomor + "')");
    }
  }
  
}
